//
//  ShipinTableViewCell.swift
//  新闻
//
//  Created by 芮京 on 2018/12/12.
//  Copyright © 2018 芮京. All rights reserved.
//

import UIKit

class ShipinTableViewCell: UITableViewCell {

    @IBOutlet weak var img: UIImageView!
    @IBOutlet weak var Zlabel: UILabel!
    @IBOutlet weak var Dianzan: UILabel!
    @IBOutlet weak var Pinglun: UILabel!
    @IBOutlet weak var Bofang: UILabel!
    func Shipin(mdoel:ShipinModel) {
        let name = mdoel.dicY
        //赋值
        let strImagV =  name!["cover"]
        let urlStr = NSURL(string:strImagV as! String)
        let data = NSData(contentsOf: urlStr! as URL)
        self.img.image = UIImage(data: data! as Data)
        
        self.Zlabel.text = (name!["title"] as! String)
        let nameString2 = (name!["length"] as! NSNumber)
        self.Dianzan.text = NSString(format: "点赞:%@", nameString2.stringValue) as String
        let nameString3 = (name!["replyCount"] as! NSNumber)
        self.Pinglun.text = NSString(format: "%@评论", nameString3.stringValue) as String
        let nameString4 = (name!["playCount"] as! NSNumber)
        self.Bofang.text = NSString(format: "播放: %@", nameString4.stringValue) as String
    }
    
}
